<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
      .obj {
        color: red;
        font-size: 18px;
        text-align: center;
        background-color: aqua;
      }
    </style>
  </head>
  <body>
    <div id="app">
        <h1 :style="obj1"> v-bind style</h1>
        <h1 :style="{'color':varPink,'font-size':font ? font :'20px'}"> v-bind style</h1>
        <h1 :style="[obj1,obj2]"> v-bind style</h1>
        <h1 :style="[obj2,{'font-size':font ? font :'20px'}]"> v-bind style</h1>
    </div>
    <script src="./vue.js"></script>
    <script>
      var vm = new Vue({
        el:'#app',
        data:{
          obj1: {
            color: "red",
            fontSize: "18px",
            textAlign: "center",
            backgroundColor: "aqua",
         },
         varPink:"pink",
         font:"50px",
         redStyle: {
             color: "red"
         },
         obj2: {
             backgroundColor:"gold"
         }
        },
        methods:{
        }
       });
    </script>
  </body>
</html>
